package com.itheima.jiuye.demo62.copy;

/**
 * @author  Administrator
 * @time 	2015-7-20 上午10:49:27
 * @des	TODO
 *
 * @version $Rev$
 * @updateAuthor $Author$
 * @updateDate $Date$
 * @updateDes TODO
 */
public class Test {
	public static void main(String[] args) {
		Teacher teacher = new Teacher();
		Student1 student1 = new Student1();
		Student2 student2 = new Student2();
		Student3 student3 = new Student3();
		Student4 student4 = new Student4();
		Student5 student5 = new Student5();
		Student6 student6 = new Student6();

		teacher.addObserver(student1);
		teacher.addObserver(student2);
		teacher.addObserver(student3);
		teacher.addObserver(student4);
		teacher.addObserver(student5);
		teacher.addObserver(student6);

		teacher.pulishMessage("2015年7月20日10:50:34 xx同学,拿到了一个12k的offer");
	}
}
